package mn.more.wits.client.exception;

/**
 * as a way to capture the condition that an user attempts to login with an account that is already in-session
 * elsewhere -- possibly on a different browser of the same machine.
 * <p/>
 * Generally, we don't include any messages detailing the in-session login as it might be security leak.
 *
 * @author <a href="mailto:mike.liu@aptechmongolia.edu.mn">Mike Liu</a>
 * @version $Revision: 119 $
 */
public class AlreadyInSessionException extends WitsSecurityException {

	private String inSessionId;

	public AlreadyInSessionException() { }

	public AlreadyInSessionException(String message) { super(message); }

	public AlreadyInSessionException(String message, Throwable cause) { super(message, cause); }

	public AlreadyInSessionException(Throwable cause) { super(cause); }

	public int getErrorCode() { return ERROR_ALREADY_IN_SESSION; }

	public String getInSessionId() { return inSessionId; }

	public void setInSessionId(String inSessionId) { this.inSessionId = inSessionId; }
}
